package com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dao.impl.ExaDaoImpl;
import com.model.Astuff;
import com.model.Exaexamine;
import com.service.ExaManager;

@Component("exaManager")
public class ExaManagerImpl implements ExaManager {
	private ExaDaoImpl exaDao;

	public ExaDaoImpl getExaDao() {
		return exaDao;
	}

	@Resource
	public void setExaDao(ExaDaoImpl exaDao) {
		this.exaDao = exaDao;
	}

	public Exaexamine getExaBeanById(String exano) {
		return exaDao.getExaBeanById(exano);
	}

	public List<Exaexamine> getExaListByUser(Astuff astuff, int offset,
			int length) {
		return exaDao.getExaListByUser(astuff, offset, length);
	}

	public Long getExaCountById(Astuff astuff) {
		return exaDao.getExaCountById(astuff);
	}

	public boolean setExaToNext(String exano,Astuff astuff) {
		return exaDao.setExaToNext(exano,astuff);
	}

}
